<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<rich:panel header="#{messages['edit.member.doc']}">
	<h:panelGrid ><h:outputText value="#{errorBean.errorMessage}" styleClass="error"></h:outputText></h:panelGrid>
	
	<t:panelGrid columns="2">
	
		<h:outputText></h:outputText>
		<h:panelGroup>
		  	<h:outputText value="*" styleClass="standardText_Mandatory" /> 
			<h:outputText value="#{messages['instruction']}" styleClass="standardText_Instruction" />
		</h:panelGroup>
		
		<h:outputText></h:outputText>
		<t:message for="Code" styleClass="error"></t:message>
	
	    <h:panelGroup>
	    	<h:outputText value="*" styleClass="standardText_Mandatory" />	
		    <h:outputLabel for="Code" value="#{messages['code']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <h:panelGroup>
	    	<t:inputText id="Code" required="true" size="10" maxlength="10" styleClass="standardText" value="#{adminMemberDocCheckListBean.checkList.code}"></t:inputText>
	    </h:panelGroup>
	    
	    <h:outputText></h:outputText>
		<t:message for="Desc" styleClass="error"></t:message>
	    
		<h:panelGroup>
	    	<h:outputText value="*" styleClass="standardText_Mandatory" />	
		    <h:outputLabel for="Desc" value="#{messages['name']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <h:panelGroup>
	    	<t:inputText id="Desc" required="true" size="50" maxlength="50" styleClass="standardText" value="#{adminMemberDocCheckListBean.checkList.title}"></t:inputText>
	    </h:panelGroup>
	    
	     <h:outputText></h:outputText>
		<t:message for="mType" styleClass="error"></t:message>
		
		<h:panelGroup>
	    	<h:outputText value="*" styleClass="standardText_Mandatory" />	
		    <h:outputLabel for="mType" value="#{messages['member.type']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <t:selectOneRadio id="mType" value="#{adminMemberDocCheckListBean.checkList.type}" styleClass="standardText" >
	    	<f:selectItems value="#{adminMemberDocCheckListBean.memberSelectList}"/>
	    </t:selectOneRadio>
	    
	     <h:outputText></h:outputText>
		<t:message for="Type" styleClass="error"></t:message>
		
		<h:panelGroup>
	    	<h:outputText value="*" styleClass="standardText_Mandatory" />	
		    <h:outputLabel for="Type" value="#{messages['type']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <t:selectOneRadio id="Type" value="#{adminMemberDocCheckListBean.checkList.isRequired}" styleClass="standardText" >
	    	<f:selectItems value="#{adminMemberDocCheckListBean.manSelectList}"/>
	    </t:selectOneRadio>
		
		<h:panelGroup></h:panelGroup>
		<h:panelGroup></h:panelGroup>
		
		<h:panelGroup></h:panelGroup>
		
		<t:panelGroup>
		   <t:panelGrid columns="2">
		   		<h:commandButton value="#{messages['update']}" styleClass="button" action="#{adminMemberDocCheckListBean.editAction}"></h:commandButton>
			    <h:commandButton value="#{messages['back']}" styleClass="button" action="#{adminMemberDocCheckListBean.navListAction}" immediate="true"></h:commandButton>
		   </t:panelGrid>
		</t:panelGroup>
	</t:panelGrid>

</rich:panel>
